<html>
<head></head>
<body>
  <p>This page injects a srcdoc frame with a nested form iframe.
  <div id="myDiv"></div>
  <script>
    var iframeHtml =
        '<iframe srcdoc="<iframe src=\'form.html\'><\/iframe>"><\/iframe>';

    // Create an iframe srcdoc with nested frame inside the preexisting div.
    document.getElementById('myDiv').innerHTML = iframeHtml;
  </script>
</body>
</html>
